<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reflect的使用</title>
</head>
<body>
    <script>
        let obj = {}

        window.Reflect.set(obj,'name','小凡')
        window.Reflect.get(obj,'name')
        window.Reflect.deleteProperty(obj,'name')
        console.log('obj', obj)
    </script>
</body>
</html>